package com.springclouddemo.eurekaclientprovider.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何昌杰
 */
@RestController
public class DemoController {

    @GetMapping("/hello/{name}")
    public String demo1(@PathVariable("name") String name){
        return "hello "+name;
    }

    @GetMapping("/user/{name}")
    public String user(@PathVariable("name") String name){
        return "user "+name;
    }
}
